<div class="quick-login">
    <form id="login_form" action="{:url('index/index/login')}" method="post" class="bg" >
        {:token()}
        <dl>
            <dt>手机号码</dt>
            <dd>
                <input type="text" class="text" autocomplete="off"  name="account" id="member_mobile" autofocus >
            </dd>
        </dl>
        <dl>
            <dt>密&nbsp;&nbsp;&nbsp;码</dt>
            <dd>
                <input type="password" class="text" name="password" autocomplete="off"  id="password">
            </dd>
        </dl>
        <dl>
            <dt>验证码</dt>
            <dd>
                <input type="text" name="captcha" class="text fl w60" id="captcha" maxlength="4" size="10" />
                <img alt="看不清，换一张" class="fl ml10" src="{:captcha_src()}" title="看不清，换一张" border="0" id="codeimage"  onclick="this.src = '{:captcha_src()}?nchash=aa7e75e1&t=' + Math.random();"><span></span></dd>
        </dl>
        <ul>
            <li>&#8250;&nbsp;如果您没有登录账号，请先<a href="{$Think.config.url_reg}" class="register">注册会员</a>然后登录</li>
            <li>&#8250;&nbsp;如果您<a href="http://web.aiyuangong.com/login.html?aygflag" class="forget">忘记密码</a>？，申请找回密码</li>
        </ul>
        <div class="enter">
            <input type="submit" class="submit" value="&nbsp;" name="Submit">
        </div>
        <input type="hidden" value="{$ref_url}" name="ref_url">
    </form>
</div>
<script>
    $(document).ready(function () {
        $("#login_form").validate({
            errorPlacement: function (error, element) {
                var error_td = element.parent('dd');
                error_td.find('label').hide();
                error_td.append(error);
            },
            onkeyup: false,
            rules: {
                member_mobile: "required",
                password: "required"
                , captcha: {
                    required: true,
                }
            },
            messages: {
                member_mobile: "",
                password: ""
                , captcha: {
                    required: ''
                }
            }
        });
    });
</script>
